<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>01_CSS显示模式</title>
    <style>
        div {
            width: 100px;
            height: 100px;
            border: 5px solid red;
        }

        span {
            background-color: #ff0;
            width: 200px;
            height: 200px;
            /*特点：横着排，不可以设置宽高 大小靠内容撑起来*/
            display: inline;
            display: inline-block;
        }

        input, button {
            width: 200px;
            height: 50px;
            /*行内块元素：既能横着排，又可以设置宽高*/
            display: inline-block;
        }

        .d2:hover {
            display: none;
        }
    </style>
</head>
<body>
<!--    .d*3-->
<div class="d1">111</div>
<div class="d2">222</div>
<div class="d3">333</div>
<hr>
<span>11111</span>
<span>22222</span>
<span>33333</span>
<hr>
<input type="text">
<input type="text">
<button>按钮</button>
</body>
</html>